package Mash.MapObjects.Building;
/*Copyright (c)  Sergey Schekochikhin (Genocidicbunny)
 * created on Sep 2, 2009 7:47:51 PM
 */

public abstract class Building {
	private int xcoord, ycoord, playerNum;
	protected Building( int xcoord, int ycoord, int playerNum ) {
		this.xcoord = xcoord;
		this.ycoord = ycoord;
		this.playerNum = playerNum;
	}


	public int getXcoord() {
		return xcoord;
	}
    public void setXcoord( int xcoord ) {
		this.xcoord = xcoord;
	}
    public int getYcoord() {
		return ycoord;
	}
    public void setYcoord( int ycoord ) {
		this.ycoord = ycoord;
	}
	//every building must have a player number, and can return it, as well as set it.
	public int getPlayerNum(){
		return playerNum;
	}
	public int setPlayerNum(int p){
		playerNum = p;
		return playerNum;
	}
	//every building has an action it does upon the start of a new turn
	public abstract void onTurn();
	public abstract void onUse();
}
